<template>
  <div class="search-form">
    <div class="slot-block">
      <slot></slot>
    </div>
    <div class="right-block">
      <el-button @click="handleClick(false)">重置</el-button>
      <el-button type="primary" @click="handleClick(true)">查询</el-button>
    </div>
  </div>
</template>

<script setup>
const emits = defineEmits(['formAction'])

function handleClick(confirm) {
  emits('formAction', confirm)
}
</script>

<style lang="scss" scoped>
.search-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .right-block {
    min-width: 200px;
  }
}
</style>
